<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    测试

    <script>
      
      new Promise((resolve,reject)=>{
            resolve('foo')
            // return 11
        })
        .then((v)=>{
            console.log(1);
            new Promise((resolve,reject)=>{
                resolve('z')
                // setTimeout(()=>{
                //     console.log('第一个setTimeout执行:--2--');
                //     resolve('z')
                // },3000)
            })
            .then((z)=>{
                console.log('3',z);
            })
            .then((z)=>{
                console.log('4',z)
            })
        })
        .then((v)=>{console.log('5',v)})
 
        
    /*
        1,5foo,2,3,4

        h:[]
        w:[]

        1354
    */
    
    
    
    </script>

</body>
</html>